package com.myjavalab.thinkinginjava4;

import com.myjavalab.util.PrintUtil;

public class Sandwich extends PortableLunch {

	private Bread b = new Bread();
	private Cheese c = new Cheese();
	private Lettuce l = new Lettuce();
	public Sandwich() {
		PrintUtil.prt("Sandwich()");
	}
	
	public static void main(String[] args) {
		new Sandwich();
	}
	
}

class Meal {
	Meal() {
		PrintUtil.prt("Meal()");
	}
}

class Bread {
	Bread() {
		PrintUtil.prt("Bread()");
	}
}

class Cheese {
	Cheese() {
		PrintUtil.prt("Cheese()");
	}
}

class Lettuce {
	Lettuce() {
		PrintUtil.prt("Lettuce()");
	}
}

class Lunch extends Meal {
	Lunch() {
		PrintUtil.prt("Lunch()");
	}
}

class PortableLunch extends Lunch {
	PortableLunch() {
		PrintUtil.prt("PortableLunch()");
	}
}

